package it.fantacalcio.spring.service;

import it.fantacalcio.model.User;

import java.util.List;

public interface UserService {
	
	public int salva(User user) throws Exception;
	public int cancella(User user) throws Exception;
	public int modifica(User user) throws Exception;
	public User get(Long id) throws Exception;
	public List<User> list() throws Exception;
	public List<User> listaAttivi() throws Exception;
	public List<User> findByExample(User user) throws Exception;
	public User login(String username, String password) throws Exception;
	public List<User> listaPresidenti() throws Exception;
	
}
